<template>
  <div>
    <div class="nav">
      <router-link to="/discover">发现音乐</router-link>
      <router-link to="/my">我的音乐</router-link>
      <router-link to="/friends">关注</router-link>
    </div>
    <router-view />
  </div>
</template>

<script>
export default {}
</script>

<style scoped>
.nav {
  height: 50px;
  background-color: #242424;
  display: flex;
}

.nav a {
  flex: 1;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  color: #fff;
}

.nav a.router-link-active {
  color: #f00;
}
</style>
